package homework;

public class Test3 {
    public static void main(String[] args) {
        int one =0;
        int ten = 0;
        int hun = 0;
        for (int i = 100; i < 1000; i++) {
            one= (i%100)%10;
            ten = (i/10)%10;
            hun =i/100;
            if (i==one*one*one+ten*ten*ten+hun*hun*hun){
                System.out.println(i);
            }
        }
    }
}
